<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./template/News_Template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="content">
        <h:form style="text-align: center">
            <br/><br/>
            <table width="100%" style="border-style: none;border-style: solid;border-width: 1px;" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td colspan="2" style="text-align: center">
                        <a href="#{killIt.newsForDel.sourceLink}" target="_blank" style="font-weight: bold">
                            #{killIt.newsForDel.title}
                        </a>
                    </td>
                </tr>
                <tr>
                    <td width="20%"><h:graphicImage value="#{killIt.newsForDel.photo}"/></td>
                    <td width="80%" style="vertical-align: top"><h:outputText value="#{killIt.newsForDel.subContent}"/></td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
            </table>
            <h:outputText value="Bạn có thực sự muốn xóa đi tin tức này hay không !?"/><br/>
            <h:commandButton value="Đồng ý" action="#{killIt.doDeleteNews}" id="delete">
               
            </h:commandButton>
            <h:commandButton value="Không muốn xóa" action="QuanLy?faces-redirect=true"/>

            <p:messages showSummary="true" showDetail="true" id="message"/>
        </h:form>
    </ui:define>

</ui:composition>
